Using eSync with eCommerce

When using eSync with an eCommerce site, you need to prevent orders from being processed on your staging server in order to prevent orders from being processed twice.

For example, a customer on your production site purchases a product. If the staging server and production server are synched before the credit card is processed, it might be charged twice: once from the production server and again from the staging server.

To prevent orders from being processed on your staging server, edit your staging site’s web.config file. Within it, set the following property to true.

<add key="ek_ecom_OrderProcessingDisabled" value="true" />

Once the property is set to true, you cannot process or edit orders from the Workarea’s View Order screen on the staging server. Also, if you try to create an order from the staging server’s Web site, you receive the following message.

We're sorry, an error occurred while processing your request. Please try again later...

It is important to note that all other eSync functions still work properly. For example, when you create catalog entries on a staging server and perform a sync, the entries are moved to the production server. The ek_ecom_OrderProcessingDisabled key only affects the processing of orders.

Previous TopicNext Topic|